package com.zhumengquan.druid.service;

import com.zhumengquan.druid.domain.User;
import com.zhumengquan.druid.mapper.AddUserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddUserService {
    @Autowired
    private AddUserDao addUserDao;

    public int addUser(User user){
        int result = addUserDao.addUser(user);
        System.out.println(result);
        return result;
    }
}
